package site.lyun.service;

import org.springframework.transaction.annotation.Transactional;
import site.lyun.dao.UserDao;
import site.lyun.dao.UserDaoImpl;
import site.lyun.entity.User;

@Transactional
public class UserService {
    private UserDao userDao;

    public UserDao getUserDao() {
        return userDao;
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    public void rigister(User user){
        userDao.rigister(user);
    }
    public User find(User user){
        return userDao.find(user);
    }
}
